//BuilderA.java
package builder.sample;

/**
 *@author:youtubezou
 *@version:2012-7-15
 */
public class BuilderA extends Builder {
	private ProductA product = new ProductA();

	public void buildPartOne(String name) {
		product.setName(name);
	}

	public void buildPartTwo(double price) {
		product.setPrice(price);
	}
	
	public void buildPartThree(int size) {
		product.setSize(size);
	}



	public ProductA retrieveProductA() {
		return product;
	}

	/*ignore disinterested function*/
	public ProductB retrieveProductB() {
		return null;
	}



}
